# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=dived
pkgver=1.9.0
pkgrel=0
pkgdesc="Start processes in unshare/lxc namespaces through UNIX sockets"
url="https://vi.github.io/dive/"
arch="all"
license="MIT"
makedepends="libcap-dev linux-headers"
checkdepends="bash procps-ng"
subpackages="$pkgname-doc"
source="https://github.com/vi/dive/archive/v$pkgver/dive-$pkgver.tar.gz
	fix-format.patch
	"
builddir="$srcdir/dive-$pkgver"

build() {
	./configure
	make
}

check() {
	make test
}

package() {
	make prefix="$pkgdir"/usr install

	install -Dvm644 debian/copyright \
		-t "$pkgdir"/usr/share/licenses/$pkgname/
}

sha512sums="
b83cffe6095bc7ed3f139f2d4577f8370eea1ea4c193e94f99348d69095fa77e2bf5a4a9e39671d068c5c1f7203cf93d9c980fb51db69c5ba7522f607d37f630  dive-1.9.0.tar.gz
d6dae2f05023582ddb37b30eec193bebb8fe642e389bb18f0039d359827ba6f379f21d63a5ca0d25ddd5bf29f23f8f33b2121583df8d6f80b412efa47a527dac  fix-format.patch
"
